package com.zhuiyun.pm.sys.order.controller;

import com.zhuiyun.pm.result.CommonResult;
import com.zhuiyun.pm.sys.order.service.SysOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName SysOrderController
 * @Description TODO
 * @Author lzy
 * @Date 2023/3/13 9:58
 **/
@RestController
@CrossOrigin
@RequestMapping("/sysOrder")
public class SysOrderController {

    @Autowired
    SysOrderService sysOrderService;

    /**
    * @Description 获取全部订单列表信息
    * @Author lzy
    * @Date 2023/3/13 11:45
    * @Return com.zhuiyun.pm.result.CommonResult
    */
    @GetMapping("/getSysOrderListAll")
    public CommonResult getSysOrderListAll(){
        return sysOrderService.getSysOrderListAll();
    }





}
